package gl.web.util;

public class OpenKeyGen {
    final static String  pkey = "vszoneKeyGen";

    /**
     * @param args
     * @throws Exception 
     */
    public static void main(String[] args) throws Exception {
//        String packname = "cn.vszone.tv.gamebox";
        String packname = "com.vszone.ko.battlechannel.demo";
//        String singmd5 = "08BB1829E76A29203FBB988BBF29E8FB";
        String singmd5 = "08BB1829E76A29203FBB988BBF29E8FB";
        String kye = gen(packname, singmd5);
        System.out.println(EncryptUtils.decrypt(kye,pkey));
        System.out.println(kye);
    }
    /**
     * 
     * @param packname
     * @param singmd5
     * @return
     * @throws Exception
     */
    public static String gen(String packname, String singmd5) throws Exception {
		String kye = EncryptUtils.encrypt(singmd5+"@"+packname, pkey);
		return kye;
	}

}
